package com.wchat.network.device;


public class DeviceGroupLink {
	
	public long deviceId;
	
	public long groupId;

	public DeviceGroupLink(long deviceId, long groupId) {
		super();
		this.deviceId = deviceId;
		this.groupId = groupId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (deviceId ^ (deviceId >>> 32));
		result = prime * result + (int) (groupId ^ (groupId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeviceGroupLink other = (DeviceGroupLink) obj;
		if (deviceId != other.deviceId)
			return false;
		if (groupId != other.groupId)
			return false;
		return true;
	}

}
